package com.tfj.mvp.tfj.detail.advisor;

import android.os.Bundle;

import com.hyphenate.tfj.R;
import com.tfj.mvp.base.BaseActivity;
import com.tfj.mvp.tfj.detail.adapter.QuickAdapter_Advisor;
import com.tfj.mvp.tfj.detail.bean.AdvisorBean;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Liang_Lu on 2017/12/21.
 *
 * @author HuangQiang
 * @github https://github.com/HuangQiang
 */

public class VAdvisorActivity extends BaseActivity<PAdvisorImpl> implements CAdvisor.IVAdvisor {


    @BindView(R.id.recycle_content)
    RecyclerView recycleContent;

    @Override
    protected void initView() {
        super.initView();
        setTitleText("置业顾问");
        QuickAdapter_Advisor quickAdapter_advisor = new QuickAdapter_Advisor(this);
        recycleContent.setLayoutManager(new LinearLayoutManager(this));
        recycleContent.setAdapter(quickAdapter_advisor);
        List<AdvisorBean> advisorBeans = new ArrayList<>();
        advisorBeans.add(new AdvisorBean());
        advisorBeans.add(new AdvisorBean());
        advisorBeans.add(new AdvisorBean());
        advisorBeans.add(new AdvisorBean());
        advisorBeans.add(new AdvisorBean());
        advisorBeans.add(new AdvisorBean());
        quickAdapter_advisor.replaceData(advisorBeans);

    }

    @Override
    public int setContentViewId() {
        return R.layout.activity_advisor;
    }

    @Override
    public void createPresenter() {
        mPresenter = new PAdvisorImpl(mContext, this);
    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
